package com.woniuxy.ptapp.app;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
//@ComponentScan("com.woniuxy")
@SpringBootApplication(scanBasePackages = {"com.woniuxy.ptapp","com.woniuxy.commons","com.woniuxy"})//多模块项目需要手动指定路径，扫描所有模块
@MapperScan( basePackages = {"com.woniuxy.ptapp.infra"})
@EnableFeignClients(basePackages = "com.woniuxy.*.client")//扫描所有的feign-client，注意项目的包路径需要符合要求
public class PtappApplication {

    public static void main(String[] args) {
        SpringApplication.run(PtappApplication.class, args);
    }

}
